<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<title>v-text_html</title>
	</head>
	<body>
		<div id="app">
			<p v-if="show">这是一段内容</p>
			<button @click="fun">点击隐藏</button>
		</div>
	</body>
	<script>
		new Vue({
			el: '#app',
			data: {
				show: true
			},
			methods: {
				fun: function() {
					this.show = !this.show;					
				}
			}
		})
	</script>
</html>
